package pri.hillchen.springboot.shiro.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import pri.hillchen.springboot.shiro.entity.Role;

import java.util.List;
import java.util.Set;

/**
 * Created by hillchen on 2017/10/17 0017.
 */
public interface RoleMapper extends BaseMapper<Role> {
    List<Role> queryUserRole(String userName);
    void assignPermission(@Param("roleId")Integer roleId, @Param("permissionIds") Set<Integer> permissionIds);
}
